﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace WebControlApp
{
    public partial class Network : Form
    {
        public Main frm1;

        public Network()
        {
            InitializeComponent();
            
        }

        public Network(string vid, string comm)
        {
            InitializeComponent();
            vidBox.Text = vid;
            commBox.Text = comm;

        }

        private void button2_Click(object sender, EventArgs e)
        {
            ((Main)frm1).currentVideoConnection = vidBox.Text.ToString();
            ((Main)frm1).currentCommandConnection = commBox.Text.ToString();
            ((Main)frm1).currentCommandPort = CommPort.Text.ToString();
        }

        private void vidBox_TextChanged(object sender, EventArgs e)
        {

        }
    }
}
